package com.lj.back.manage.scaffold.module.job.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lj.back.manage.scaffold.module.job.DO.ScheduleJobLogDO;
import com.lj.back.manage.scaffold.module.job.DTO.ScheduleJobLogDTO;
import com.lj.back.manage.scaffold.module.job.DTO.ScheduleJobLogPageQuery;
import com.lj.back.manage.scaffold.module.job.DTO.ScheduleJobLogStatisticsDTO;

import java.util.List;

/**
 * 定时任务日志
 * @author lv
 */
public interface ScheduleJobLogService extends IService<ScheduleJobLogDO> {

    /**
     * 分页查询定时任务日志列表
     * @param pageQuery 分页查询对象
     * @return
     */
    IPage<ScheduleJobLogDTO> listScheduleJobLog(ScheduleJobLogPageQuery pageQuery);

    /**
     * 获取统定时任务计信息列表
     * @param jobId
     * @return
     */
    List<ScheduleJobLogStatisticsDTO> listScheduleJobLogStatistics(String jobId);
}
